/*
** my_printf.c for  in /home/georgi_v/rendu/PSU_2013_my_printf
** 
** Made by georgi_v
** Login   <georgi_v@epitech.net>
** 
** Started on  Fri Nov 15 22:16:14 2013 georgi_v
** Last update Fri Dec  6 19:54:27 2013 georgi_v
*/

#include "my.h"

void		my_printf(const char *format, ...)
{
  va_list	ap;
  int		cnt;

  va_start(ap, format);
  cnt = 0;
  while (format[cnt] != '\0')
    {
      if (format[cnt] == '%' && format[cnt + 1] != '\0')
	process_char(format, ap, &cnt);
      else
	{
	  my_putchar(format[cnt]);
	  cnt++;
	}
    }
  va_end(ap);
}
